<template>
  <div class="">

    <Form :label-width="105">

      <FormItem label="表头背景色">
        <ColorPicker size="small" v-model="headerBackgroundColor" alpha recommend/>
      </FormItem>
      <FormItem label="表头字体颜色">
        <ColorPicker size="small" v-model="headerColor" alpha recommend/>
      </FormItem>


    </Form>

  </div>
</template>

<script>
  import { createHelpers } from 'vuex-map-fields';

  const { mapFields } = createHelpers({
    getterType: 'designer/getLayoutItem',
    mutationType: 'designer/updateLayoutItem',
  });

  export default {
    name: 'ITableCompForm',
    data() {
      return {

      }
    },
    mounted() {

    },
    methods: {},
    computed: {
      ...mapFields({
        headerBackgroundColor: 'component.compConfigData.headerStyle.backgroundColor',
        headerColor: 'component.compConfigData.headerStyle.color'
      })
    }
  }
</script>

<style scoped>
  .ivu-form-item {
    margin-bottom: 0px;
  }
</style>
